package com.zhfj.service.impl;

import com.zhfj.dao.UserDao;
import com.zhfj.entity.UserEntity;
import com.zhfj.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created on 2017/12/1.
 *
 * @author Jie
 */
@Service
@Transactional
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public UserEntity findById(Integer id) {
        return userDao.findById(id);
    }

}
